#pragma once

struct IFile
{
public:
    virtual bool Create(std::string strFileName) = 0;
};

class CTxtFile : public IFile
{
public:
    virtual bool Create(std::string strFileName)
    {
        std::cout << "Create " << strFileName << ".txt" << std::endl;
        return true;
    }
};

class CWordFile : public IFile
{
public:
    virtual bool Create(std::string strFileName)
    {
        std::cout << "Create " << strFileName << ".word" << std::endl;
        return true;
    }
};

